package entity;

import java.util.Date;

public class User {
    private int userId;
    private String username;
    private String password;
    private String role;
    private String realName;
    private Date createTime;
    private Integer classId;

    // 无参构造
    public User() {}

    // 全参构造
    public User(int userId, String username, String password, String role, String realName, Date createTime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.role = role;
        this.realName = realName;
        this.createTime = createTime;
    }

    // Getter和Setter
    public int getUserId() { return userId; }
    public void setUserId(int userId) { this.userId = userId; }
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }
    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
    public String getRole() { return role; }
    public void setRole(String role) { this.role = role; }
    public String getRealName() { return realName; }
    public void setRealName(String realName) { this.realName = realName; }
    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }
    public Integer getClassId() { return classId; }
    public void setClassId(Integer classId) { this.classId = classId; }
}
